<?php

Route::group(['namespace' => 'Admin','prefix' => 'admin'],function(){  //这是命名空间第一个admin是控制器的admin,第二个admin是地址栏的admin

//加载后台模板
Route::get("layout","IndexController@index");
Route::get("list","ListController@index");
Route::get("login","LoginController@login");
Route::post("login","LoginController@dologin");
Route::get("admins","AdminController@admin");

Route::get("mokuai","MokuaiController@index");
// Route::get("mokuai","MokuaiController@create");
 Route::resource('mokuai','MokuaiController');
//用户相关
 Route::resource('user','UserController');
 Route::resource('list','ListController');
 Route::resource('tupian','TupianController');
 
});